import { DEFAULT_LAYOUT } from '../base'
import { AppRouteRecordRaw } from '../types'

const VISUALIZATION: AppRouteRecordRaw = {
  path: '/visualization',
  name: 'visualization',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '概况',
    requiresAuth: true,
    icon: 'icon-bar-chart',
    order: 0,
  },
  children: [
    {
      path: '/visualization/multi-dimension-data-analysis',
      name: 'dimensionDataAnalysis',
      component: () => import('@/views/visualization/multi-dimension-data-analysis/index.vue'),
      meta: {
        locale: '多维数据',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/visualization/order',
      name: 'visualizationorder',
      component: () => import('@/views/visualization/order/index.vue'),
      meta: {
        locale: '订单数据',
        requiresAuth: true,
        roles: ['*'],
        notColor: true,
      },
    },
    {
      path: '/visualization/activity',
      name: 'visualizationActivity',
      component: () => import('@/views/financial/activity.vue'),
      meta: {
        locale: '活动数据',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/visualization/statisticians',
      name: 'visualizationStatisticians',
      component: () => import('@/views/financial/statisticians.vue'),
      meta: {
        locale: '商品分析',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
}

export default VISUALIZATION
